package cn.nubia.admin.application.query;

import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.util.Date;

/**
 * Created by justin on 15/7/12.
 */
public class ClaimQuery extends PageQueryParam {

    private Integer claimType;//枚举类型

    private Integer resType;//资源类型（1-软件详情 2-软件分类 3-专>题）

    private String userName;

    private Date createTimes;
    private Date createTimee;

    private String createTimeRange;

    public Integer getClaimType() {
        return claimType;
    }

    public void setClaimType(Integer claimType) {
        this.claimType = claimType;
    }

    public Integer getResType() {
        return resType;
    }

    public void setResType(Integer resType) {
        this.resType = resType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getCreateTimes() {
        return createTimes;
    }

    public void setCreateTimes(Date createTimes) {
        this.createTimes = createTimes;
    }

    public Date getCreateTimee() {
        return createTimee;
    }

    public void setCreateTimee(Date createTimee) {
        this.createTimee = createTimee;
    }

    public String getCreateTimeRange() {
        return createTimeRange;
    }

    public void setCreateTimeRange(String createTimeRange) {
        this.createTimeRange = createTimeRange;
        if (createTimeRange != null&&createTimeRange!="") {
            this.setCreateTimes(DateUtil.getBeginDateFromRange(createTimeRange));
            this.setCreateTimee(DateUtil.getEndDateFromRage(createTimeRange));
        }
    }
}
